package com.techsoul.module.order.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.techsoul.common.core.annotation.ExcelField;
import com.techsoul.common.core.pojo.entity.DataEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 销售订单明细对象 oms_sales_order_item
 * 
 * @author liuen
 * @date 2020-12-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("oms_sales_order_item")
public class SalesOrderItem extends DataEntity {


    /**
     * 销售订单ID
     */
    private String salesOrderId;
    private String importErrorMesg;
    private String errorFlag;
    /**
     * 销售订单号
     */
    private String salesOrderNo;

    private String purchaseStatus;

    /**
     * 销售订单明细
     */
    private String salesOrderItemNo;
    private String contractNo;

    /**
     * 分类ID
     */
    private String categoryId;

    /**
     * 分类名称
     */
    private String categoryName;

    /**
     * SPU_ID
     */
    private String spuId;

    /**
     * SPU名称
     */
    private String spuName;


    /**
     * SKU_ID
     */
    private String skuId;


    /**
     * SKU名称
     */
    private String skuName;


    /**
     * 重量
     */
    private Long weight;


    /**
     * 运费
     */
    private Double freightFee;


    /**
     * 单价
     */
    private Double price;


    /**
     * 数量
     */
    private Long qty;


    /**
     * 总金额
     */
    private Double money;


    /**
     * 实付金额
     */
    private Double payMoney;


    /**
     * 图片地址
     */
    private String image;


    /**
     * 是否退货（数据字典sys_yn_type，默认0-否）
     */
    private String isReturn;



    /**
     * 所属商户ID
     */
    private String storeId;
    private String uppPaymentSeqNoPoint;
    private String uppPaymentSeqNo;
    private String custNote;
    private String custSalesOrderItemNo;

    private Double unitPricePoint;


    private Double salePricePoint;
    private String custSkuId;
    private String custSpuId;

    private String custCashPaymentAmt;
    private String custMilePaymentAmt;

    private String orderTime;
    private String custOrderStatus;

    private String deliveryAddTime;

    private String afterSaleService;


    private String custSalesOrderNo;


    private String consigneeName;

    private String productAttribution; //有

    private String consigneePhone;


    private String consigneeAddress;


    private String paymentStatus;


    private String deliveryStatus;

    private String  orderSource;
    /**
     * 客户名称
     */
    private String customerName;
    private String customerNo;
    private String status;
    private String materialMapId;
    private String genAccFailedReason;

    private String supplierName;

    private String supplierNo;
    private String storeName;


    private String site;
    private Long originalQty;

    private String custRelSalesPrice;

    private String errorCode;

   private String discountActivityName;//有
   private String discountActivityCode;
   private String returnOrderItemNo;
   private Double returnAmt;
   private Integer returnQty;

    // 南航新增字段--开始
    /**
     *  订单类型名称
     */
    private String orderTypeName;

    /**
     * 序号
     */
    private Integer seq;

    /**
     * 商城买家编号
     */
    private String buyerId;

    /**
     * 退款类型 1 ： 普通退款 2：里程退款
     */
    private String returnType;

    /**
     * 支付渠道（里程）: 默认是：南航UPP
     */
    private String mileagePaymentChannel;

    /**
     * 支付类型: 1现金支付  10里程支付  11混合支付
     */
    private String shipmentType;

    /**
     * 运费（里程）
     */
    private String mileageFreight;

    /**
     * 订单状态名称
     */
    private String custOrderStatusName;

    /**
     * 单价(现金)
     */
    private Double payPrice;

    /**
     * 单价(里程)
     */
    private Double mileagePayPrice;

    /**
     * 售后服务: 进行中  退款关闭  退款成功
     */
    private String afterServiceName;

    /**
     * 订单配送方式: 1.快递发货、2.上门自提
     */
    private String orderDistributionWay;

    /**
     * 渠道终端名称
     */
    private String orderSourceName;

    /**
     * 折扣活动编号
     */
    private String activityId;

    /**
     * 折扣活动名称
     */
    private String activityName;

    /**
     * 支付渠道（现金）: 默认是：南航UPP
     */
    private String paymentChannel;

    /**
     * 商家优惠券金额（现金）
     */
    private Double couponDiscount;

    /**
     * 商家优惠券金额（里程）
     */
    private Double mileageCouponDiscount;

    /**
     * 南航-订单来源
     */
    private String canalName;

    /**
     * 支付商（里程）
     */
    private String mileagePaymentTypeName;

    /**
     * 商品属性
     */
    private String attributes;


    private Double storeDiscountAmt;


    private Double storeDiscountAmtPoint;


    private String storeDiscountActId;

    private String supplierStatus;
    private String storeDiscountCode;
    private Double custRelSalesUnitPrice;
    private String unit;
}
